package com.part.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * <p>
 *
 * </p>
 *
 * @author Song
 * @since 2020/11/16
 */
@Controller
public class PageController {

    @RequestMapping("/index")
    public String doIndex(){
        return "index";
    }

    @RequestMapping("/login")
    public String doLogin(){
        return "login";
    }

    @RequestMapping("/main")
    public String doMain(){
        return "main";
    }

    @RequestMapping("/userManage/{module}")
    public String doUserModule(@PathVariable String module){
        return "userManage/"+module;
    }

    @RequestMapping("/bannerManage/{module}")
    public String doBannerModule(@PathVariable String module){
        return "bannerManage/"+module;
    }

    @RequestMapping("/collectManage/{module}")
    public String doCollectModule(@PathVariable String module){
        return "collectManage/"+module;
    }

    @RequestMapping("/forumManage/{module}")
    public String doForumModule(@PathVariable String module){
        return "forumManage/"+module;
    }

    @RequestMapping("/mailboxManage/{module}")
    public String doMailboxModule(@PathVariable String module){
        return "mailboxManage/"+module;
    }

    @RequestMapping("/noticeManage/{module}")
    public String doNoticeModule(@PathVariable String module){
        return "noticeManage/"+module;
    }

    @RequestMapping("/systemManage/{module}")
    public String doSystemModule(@PathVariable String module){
        return "systemManage/"+module;
    }
    @RequestMapping("/workManage/{module}")
    public String doWorkModule(@PathVariable String module){
        return "workManage/"+module;
    }


}
